package com.masterrabbit.gmh.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("value = merchants")
public class Merchants {
    @TableId
    private Integer merchantId;
    @TableField("merchant_code")
    private Integer merchantCode;
    @TableField("contact_name")
    private String contactName;
    @TableField("id_card_number")
    private String idCardNumber;
    @TableField("business_license_number")
    private String businessLicenseNumber;
    @TableField("shop_name")
    private String shopName;
    @TableField("phone_number")
    private String phoneNumber;
    @TableField("business_area")
    private String businessArea;
    @TableField("detailed_address")
    private String detailedAddress;
    @TableField("id_card_image_id")
    private Integer  idCardImageId;
    @TableField("business_license_image_id")
    private Integer  businessLicenseImageId;
    @TableField("storefront_image_id")
    private Integer  storefrontImageId;
    @TableField("longitude")
    private Double longitude;
    @TableField("latitude")
    private Double latitude;
    @TableField("audit_status")
    private Integer auditStatus;
    @TableField("bussiness_hours")
    private String businessHours;
    @TableField("user_id")
    private Integer userId;
    @TableField("shop_balance")
    private Double shopBalance;
    //不是表中字段
    @TableField(exist = false)
    private Double distance;
    @TableField(exist = false)
    private List<String> storefrontImageUrl;

}
